<?php
set_time_limit(0);

require_once 'config.php';
require_once 'function.php';
require_once 'class/Mysql.class.php';

$db = new Mysql();

//中文接口
function china( $table = 'Table_45', $field = 'Field_20352' ){
	$sql_arr = array();
	$sql_arr[] = "update {$table} set {$field} = replace({$field},'$ {下载 与 免费 上}', '\${下载与免费上}')";
	$sql_arr[] = "update {$table} set {$field} = replace({$field},'$ {下载 与 免费 中}', '\${下载与免费中}')";
	$sql_arr[] = "update {$table} set {$field} = replace({$field},'$ {下载 与 免费 下}', '\${下载与免费下}')";
	$sql_arr[] = "update {$table} set {$field} = replace({$field},'$ {} 关联 产品', '\${关联产品}')";
	$sql_arr[] = "update {$table} set {$field} = replace({$field},'$ {} 右侧 留言', '\${右侧留言}')";
	$sql_arr[] = "update {$table} set {$field} = replace({$field},'$ {} 评论 信息', '\${评论信息}')";
	return $sql_arr;
}

$arr = china();

foreach( $arr as $v ){
	$db->query( $v );
}